/*
 * FileName Thickness.h
*/

#ifndef __DEEP_ZOOM_IMAGE_THICKNESS_H__
#define __DEEP_ZOOM_IMAGE_THICKNESS_H__

namespace DeepZoomImage
{
	struct Thickness
	{
		double left;
		double top;
		double right;
		double bottom;

		Thickness ();
		Thickness(double uniform);
		Thickness(double hori, double vert);
		Thickness(double left, double top, double right, double bottom);

		Thickness operator- ();
		Thickness operator+ (const Thickness &th);
		Thickness operator- (const Thickness &th);
		bool operator == (const Thickness &v) const;
		bool operator != (const Thickness &v) const;
		static bool FromStr (const char *s, Thickness *t);
	};
}

#endif /*__DEEP_ZOOM_IMAGE_THICKNESS_H__*/